<template>
	<view class="content">
			<image class="faceImageClass" :src="faceImage" mode = "widthFix" ></image>{{username}}
			
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username:"",
				faceImage:""
			}
		},
		methods: {
			init(){
				const than = this;
				uni.getStorage({
				    key: 'username',
				    success: function (res) {
						than.username = res.data
				        console.log(than.username);
				    }
				});
				uni.getStorage({
				    key: 'faceImage',
				    success: function (res) {
						than.faceImage = res.data
				        console.log(than.faceImage);
				    }
				});

			}
		},
		created() {
			this.init();
		}
	}
</script>

<style>
.faceImageClass{
	width: 100rpx;
}
</style>
